package com.bawei.yangzongcai___chenmei.BlankFragment.Blanck1;


import androidx.fragment.app.Fragment;
import androidx.viewpager.widget.ViewPager;

import com.bawei.yangzongcai___chenmei.Adpter.FragementTwo;
import com.bawei.yangzongcai___chenmei.BlankFragment.TableLayoution.BlankFragmentTableLayout1;
import com.bawei.yangzongcai___chenmei.BlankFragment.TableLayoution.BlankFragmentTableLayout2;
import com.bawei.yangzongcai___chenmei.BlankFragment.TableLayoution.BlankFragmentTableLayout3;
import com.bawei.yangzongcai___chenmei.MVC.BsaeFragment;
import com.bawei.yangzongcai___chenmei.R;
import com.google.android.material.tabs.TabLayout;

import java.util.ArrayList;


public class BlankFragmentZhu6 extends BsaeFragment {


    private TabLayout table;
    private ViewPager vp;

    @Override
    public int bandLayout() {
        return R.layout.fragment_blank_fragment_zhu6;
    }

    @Override
    public void initView() {

        table = findbandid(R.id.table);
        vp = findbandid(R.id.vp);
    }

    @Override
    public void initDate() {
        ArrayList<Fragment> fragments = new ArrayList<>();
        fragments.add(new BlankFragmentTableLayout1());
        fragments.add(new BlankFragmentTableLayout2());
        fragments.add(new BlankFragmentTableLayout3());
        ArrayList<String> strings = new ArrayList<>();
        strings.add("文德镇");
        strings.add("沙道村");
        strings.add("东诸侯");
        FragementTwo fragementTwo = new FragementTwo(getChildFragmentManager(),fragments,strings);
        vp.setAdapter(fragementTwo);
        table.setupWithViewPager(vp);
    }
}
